package com.yx.elastic.elasticcm.client;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Created by chenzp on 18-9-21.
 */
@Configuration
@ConfigurationProperties(prefix = "elasticsearch", ignoreUnknownFields = false)
@PropertySource("classpath:elastic.properties")
@Data
@Component
public class ElasticConfig {

    public String httphost;

    public String scheme;

    public Integer port;
}
